package apms

import "time"

type ApmConfig struct {
	OpenTracing OpenTracingConfig `mapstructure:"open_tracing"`
}

type OpenTracingConfig struct {
	Enable  bool `mapstructure:"enable"`
	Sampler struct {
		Type  string  `mapstructure:"type"`
		Param float64 `mapstructure:"param"`
	} `mapstructure:"sampler"`
	Reporter struct {
		LogSpans            bool          `mapstructure:"log_spans"`
		BufferFlushInterval time.Duration `mapstructure:"buffer_flush_interval"`
		LocalAgentHostPort  string        `mapstructure:"local_agent_host_port"`
	} `mapstructure:"reporter"`
}
